package com.example.demo.config;

import com.example.demo.component.ThreadPool;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @Author x c
 * @Email 378661553@qq.com
 * @Date Created in 2020/1/20 9:04
 */
@SpringBootConfiguration
public class BeanConfig {

    @Bean
    public ThreadPool threadPool() {
        return new ThreadPool();
    }
}
